<!DOCTYPE html>
<html lang="en" xmlns:th="http://www.w3.org/1999/xhtml">
<head>
    <div th:insert="commons.html"></div>
    <meta charset="UTF-8">
    <title>Title</title>
</head>
<body>
<form id="person_update_form">
    <div class="form-group">
        <label>用户名称:</label>
        <input type="hidden" name="pid" th:value="${person.pid}">
        <div class="form-group">
            <label for="firstname" class="col-sm-2 control-label">名字</label>
            <div class="col-sm-10">
                <input type="text" class="form-control" id="firstname" name="pname" th:value="${person.pname}" placeholder="请输入名字">
            </div>
        </div>
        <div class="form-group">
            <label class="col-sm-2 control-label">角色</label>
            <div class="col-sm-10">
        <span th:each="role : ${list}">
            <input type="checkbox" name="roleId" th:value="${role.roleId}" th:checked="${rids.contains(role.roleId)}">[[${role.roleName}]]
        </span>
            </div>
        </div>
    </div>
</form>
</body>
</html>